package cn.trda.pojo;

import java.util.Date;

public class Person {
	
		private int age; //成员变量   字段
		private String username;//成员变量   字段  
		
		private double height;
		private Date birthday;
		

		//我的类中有几个属性？
				//2
				//3 ddd dd sd 
				//4
		
		 public Date getBirthday() {
			return birthday;
		}

		public void setBirthday(Date birthday) {
			this.birthday = birthday;
		}

		public double getHeight() {
			return height;
		
		}

	

		@Override
		public String toString() {
			return "Person [age=" + age + ", username=" + username
					+ ", height=" + height + ", birthday=" + birthday + "]";
		}

		public void setHeight(double height) {
			this.height = height;
		}

		// get和set的叫属性
		public int getAge() {
			return age;
		}

		public void setAge(int age) {
			this.age = age;
		}

		public String getUsername() {
			return username;
		}

		public void setUsername(String username) {
			this.username = username;
		}

		public void eat(){
			System.out.println("说：一行输出代码代表一万业务代码0:人要吃");
		}
		
		public String eat(String name){
			System.out.println(name+"说：一行输出代码代表一万业务代码1:人要吃");
			return "zs:"+name;
		}
		
		
		private String eat(String name,int age){
			System.out.println(name+"说：一行输出代码代表一万业务代码1:人要吃"+age);
			return "zs:"+name+age;
		}
		
		
		public int sleep(String name){
			System.out.println(name+"说：一行输出代码代表一万业务代码2:人要睡");
			return 15;
		}
}
